package com.yj.ccs.abs.web.asset.dto;

import com.yj.ccs.abs.web.common.entity.Attachment;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

/**
 * Copyright 2018 (C) Yunjian-VC
 * Created on : 2018/3/24
 * Author     : Unbelievable9
 **/
@Data
public class UpdateSettleAccountDto {

    @NotNull(message = "结算ID不能为空")
    @ApiModelProperty(value = "结算ID", required = true, example = "1")
    private Long id;

    @NotNull(message = "结算日期不能为空")
    @ApiModelProperty(value = "结算日期", required = true, example = "2018-01-01")
    private LocalDate date;

    @NotNull(message = "结算吨数不能为空")
    @ApiModelProperty(value = "结算吨数", required = true, example = "566800.00")
    private BigDecimal amount;

    @NotNull(message = "结算单价不能为空")
    @ApiModelProperty(value = "结算单价", required = true, example = "566800.00")
    private BigDecimal unit_price;

    @ApiModelProperty(value = "结算单据")
    private List<Attachment> files;
}
